<html>
<head><meta charset="utf-8"><title>typenum inlay hints · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/typenum.20inlay.20hints.html">typenum inlay hints</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="220590514"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/typenum%20inlay%20hints/near/220590514" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/typenum.20inlay.20hints.html#220590514">(Dec 21 2020 at 14:45)</a>:</h4>
<p>welp, maybe we need some way of saying "don't show this type in hints":<br>
<a href="/user_uploads/4715/INLbQbvE7pVE4vl0CgMARLe2/2020-12-21-154302_940x117_scrot.png">2020-12-21-154302_940x117_scrot.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/INLbQbvE7pVE4vl0CgMARLe2/2020-12-21-154302_940x117_scrot.png" title="2020-12-21-154302_940x117_scrot.png"><img src="/user_uploads/4715/INLbQbvE7pVE4vl0CgMARLe2/2020-12-21-154302_940x117_scrot.png"></a></div>



<a name="220590622"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/typenum%20inlay%20hints/near/220590622" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lukas Wirth <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/typenum.20inlay.20hints.html#220590622">(Dec 21 2020 at 14:47)</a>:</h4>
<p>Don't we have the typehint length limit for this?</p>



<a name="220590760"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/typenum%20inlay%20hints/near/220590760" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/typenum.20inlay.20hints.html#220590760">(Dec 21 2020 at 14:48)</a>:</h4>
<p>yeah sure, but that doesn't mean showing such types is fine as long as they don't reach the limit</p>



<a name="220590805"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/typenum%20inlay%20hints/near/220590805" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/typenum.20inlay.20hints.html#220590805">(Dec 21 2020 at 14:48)</a>:</h4>
<p>in fact, showing an ellipsis somewhere in the middle of this type makes it even more useless</p>



<a name="220590888"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/typenum%20inlay%20hints/near/220590888" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/typenum.20inlay.20hints.html#220590888">(Dec 21 2020 at 14:49)</a>:</h4>
<p>I'm still waiting for <code>chalk</code> to get precise enough so <a href="http://www.treblig.org/daveG/rust-mand.html">http://www.treblig.org/daveG/rust-mand.html</a> can work in RA</p>



<a name="220590975"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/typenum%20inlay%20hints/near/220590975" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/typenum.20inlay.20hints.html#220590975">(Dec 21 2020 at 14:50)</a>:</h4>
<p>Re. shortening, I think we just stick an ellipsis in the middle of a type. But something smarter like showing <code>GenericArray&lt;u8, ...&gt;</code> wouldn't be so bad</p>



<a name="220591028"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/typenum%20inlay%20hints/near/220591028" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lukas Wirth <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/typenum.20inlay.20hints.html#220591028">(Dec 21 2020 at 14:51)</a>:</h4>
<p>Ye I suppose the current trimming isnt the best in this case? not sure<br>
<a href="/user_uploads/4715/sd803kUb7gZYMwSKqx7XKEuX/image.png">image.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/sd803kUb7gZYMwSKqx7XKEuX/image.png" title="image.png"><img src="/user_uploads/4715/sd803kUb7gZYMwSKqx7XKEuX/image.png"></a></div>



<a name="220591063"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/typenum%20inlay%20hints/near/220591063" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/typenum.20inlay.20hints.html#220591063">(Dec 21 2020 at 14:51)</a>:</h4>
<p>Ah, that's still better than what I recalled</p>



<a name="220591491"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/typenum%20inlay%20hints/near/220591491" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lqd <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/typenum.20inlay.20hints.html#220591491">(Dec 21 2020 at 14:57)</a>:</h4>
<p><span class="user-mention" data-user-id="129457">@Florian Diebold</span> I have the same thing ^^ <a href="/user_uploads/4715/MxoJcQx4WcHt5YulMCf5_GbE/image.png">image.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/MxoJcQx4WcHt5YulMCf5_GbE/image.png" title="image.png"><img src="/user_uploads/4715/MxoJcQx4WcHt5YulMCf5_GbE/image.png"></a></div>



<a name="220591619"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/typenum%20inlay%20hints/near/220591619" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/typenum.20inlay.20hints.html#220591619">(Dec 21 2020 at 14:58)</a>:</h4>
<p>I hereby coin the term: <strong>longly typed language</strong></p>



<a name="220591873"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/typenum%20inlay%20hints/near/220591873" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/typenum.20inlay.20hints.html#220591873">(Dec 21 2020 at 15:00)</a>:</h4>
<p><span class="user-mention" data-user-id="116113">@lqd</span> you can set <code>rust-analyzer.inlayHints.maxLength</code> to improve this</p>



<a name="220591922"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/typenum%20inlay%20hints/near/220591922" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lqd <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/typenum.20inlay.20hints.html#220591922">(Dec 21 2020 at 15:01)</a>:</h4>
<p>sweet, thank you</p>



<a name="220591924"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/typenum%20inlay%20hints/near/220591924" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/typenum.20inlay.20hints.html#220591924">(Dec 21 2020 at 15:01)</a>:</h4>
<p>I should do that as well</p>



<a name="220591964"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/typenum%20inlay%20hints/near/220591964" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/typenum.20inlay.20hints.html#220591964">(Dec 21 2020 at 15:01)</a>:</h4>
<p>we should maybe set that by default</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>